import request from '@/utils/request'

// 查询赛项管理列表
export function listCompetitionitem(query) {
  return request({
    url: '/commgr/competitionitem/list',
    method: 'get',
    params: query
  })
}

// 查询赛项管理详细
export function getCompetitionitem(comItemId) {
  return request({
    url: '/commgr/competitionitem/' + comItemId,
    method: 'get'
  })
}

// 新增赛项管理
export function addCompetitionitem(data) {
  return request({
    url: '/commgr/competitionitem',
    method: 'post',
    data: data
  })
}

// 修改赛项管理
export function updateCompetitionitem(data) {
  return request({
    url: '/commgr/competitionitem',
    method: 'put',
    data: data
  })
}

// 删除赛项管理
export function delCompetitionitem(comItemId) {
  return request({
    url: '/commgr/competitionitem/' + comItemId,
    method: 'delete'
  })
}
